import request from "@/utils/request"



export const queryPageApi =  (name,gender,begin,end,page,pageSize) => request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

//新增员工方法
export const addEmpApi = (data) => request.post(`/emps`,data)

//数据回显
export const getEmpByIdApi = (id) =>request.get(`/emps/${id}`)



//修改

export const updateByIdApi = (data) => request.put(`/emps`,data)

//批量删除员工
export const deletebyIdsApi = (ids) => request.delete('/emps',{params:{ids:ids.join(',')}})



//export const deletebyIdsApi = (ids) => request.delete(`/emps?ids=${ids}`)